<extend name="Public/base" />
<block name="body">
      <div class="main-title" style="padding-bottom: 10px;">
          <h2><b style="color: red;">{$_data.cityname}-{$_data.id|get_lbs_application_name}-{$_data.name}</b>:项目区域设置</h2>
    </div>
    <div class="cf">
        <div class="fl">
            <a class="btn btn-default" href="{:U('add')}&id={$_data.id}">添  加</a> 
            <button class="btn btn-default" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </div>
     <div class="data-table table-striped">
	<table>
            <thead>
                <tr>
                    <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
                    <th>区域ID</th>
                    <th>区域名称</th>
                    <th>其他数据ID</th>
                    <th>状态</th>
                    <th>操作</th> 
                </tr>
            </thead>
            <tbody>
                <notempty name="_list">
                    <volist name="_list" id="vo">
                        <tr>
                            <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td> 
                            <td>{$vo.id}</td>
                            <td>{$vo.name}</td>
                            <td>{$vo.otherid}</td>
                            <td>{$vo.status_text}</td>
                            <td>
                                    <a href="{:U('LbsProjectAreaInfo/edit')}&id={$vo.id}" class="  btn btn-primary">编辑</a>
                                  <eq name="vo.status" value="1">
                                <a href="{:U('LbsProjectAreaInfo/changeStatus?id='.$vo['id'])}&method=forbid" class="confirm ajax-get btn btn-warning ">禁用</a>
                                <else/>
                                 <a href="{:U('LbsProjectAreaInfo/changeStatus?id='.$vo['id'])}&method=resume" class="confirm ajax-get btn btn-warning">启用</a>
                                </eq>
                                
                                  <a href="{:U('LbsProjectAreaInfo/changeStatus?id='.$vo['id'])}&method=delete" class="confirm ajax-get btn btn-warning">删除</a>
                            </td> 
                        </tr>
                    </volist>
                <else/>
                    <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
                </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
     <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('LbsProject/index')}');
    </script>
</block>